#include "cpputils.h"
// net
#include "thread.h"
#include "threadpool.h"
#include "multiepollserver.h"
#include "epolldispatcher.h"
#include "httpfactory.h"


int main(int argc, char* argv[])
{
    string ip("0.0.0.0");
    unsigned int port = 9500, epollnum = 1;
    unsigned int ep_thdpool_size = 4;
    unsigned int wait_timeout = 2;
    
    SocketAddress addr(ip,port);
    HttpFactory* pfactory = new HttpFactory();
    MultiEpollServer server(addr,pfactory,epollnum,ep_thdpool_size);

    server.wait(wait_timeout);
    server.stop();
    delete pfactory;
    
    return 0;
}


